<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnTypeInMotionCaptureDataTable extends AbstractMigration
{
    public function up()
    {
        $this->table('motion_capture_data_relation')
            ->addColumn('type', 'enum', ['values' => 'camera,role', 'default' => 'role', 'comment' => '数据类型 camera 摄像机,role 角色'])
            ->save();
    }

    public function down()
    {
        $this->table('motion_capture_data_relation')->removeColumn('type')->save();
    }
}
